package com.xian.tszs.meal.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xian.tszs.meal.dto.TsOrderDTO;
import com.xian.tszs.meal.entity.TsOrder;
import com.xian.tszs.meal.mapper.TsOrderMapper;
import com.xian.tszs.meal.service.OrderManageService;

@Service
public class OrderManageServiceImpl implements OrderManageService {
	
	
	
	@Autowired
	private TsOrderMapper tsOrderMapper;
	
	@Override
	public List<TsOrder> findOrdersAll(TsOrder order) {
		
		return tsOrderMapper.findAllPage(order);
	}

	@Override
	public List<TsOrderDTO> findOrderHandle(String id) {
		
		return tsOrderMapper.findOrderHandle(id);
	}

	@Override
	public void updateOrderStatus(Integer status,String id) {
		tsOrderMapper.updateOrderStatus(status,id);
	}

	@Override
	public TsOrderDTO orderDetail(String id) {
		
		return tsOrderMapper.orderDetail(id);
	}
	
}
